<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<div class='span2 news1' style='height:140px;'>
<div class="">
  <ul class='menu nav nav-tabs nav-stacked'>
  <li id='all'><a href='<%=basePath%>nb/allnews_1'>全部</a></li>
     <li><a href='<%=basePath%>nb/djnews_1'>党建新闻</a></li>
     <li><a href='<%=basePath%>nb/kynews_1'>科研新闻</a></li>
     <li><a href='<%=basePath%>nb/xsgznews_1'>学生工作新闻</a></li>
     <li><a href='<%=basePath%>nb/zsjynews_1'>招生就业新闻</a></li>
     <li id='yz'><a href='<%=basePath%>nb/yznews_1'>研招新闻</a></li>
     <li id='jx'><a href='<%=basePath%>nb/jxnews_1'>教学新闻</a></li>
  </ul>
  </div>
  <!-- <div class="panel"> 
  <div class="panel-heading word tou">新闻热点</div>
            <div style="border:2px;align:center;height:300px;">
                <table class="table table-hover"  >
                <c:forEach items="${hotnews }" var="i" >
    		   
             <tr >
              <td  class='title'  ><div class='texthidden4'><a href='<%=basePath %>nb/detail/${i.id }'  title="${i.title }">${i.title }</a></div></td>
               
              
              <td style=''>${i.publishDate }</td>
           </tr>
          </c:forEach>
    		   </table>
            </div>
       </div>  -->
</div>
<div class='span9 newscontent nbheight' >
<div class='span6'>
	  <form action="<%=basePath%>nb/search/1" method="post" class='form-search'>
		
		  <div class='span8'> 
		    <input type="text" name='title' value="检索信息" id='search'
			class="search-input init search input-medium search-query" style='height:33px;margin-top: 10px;'>
		  </div>
		<div class='span2' style='margin-top:10px;'>
		 <input type="hidden" id='' name='type' value='news' /> 
		<input class='btn btn-info' type="submit" id='searchbtn' value="找找看">
		</div>
		
	</form>
	</div>
<c:if test="${not empty  pnewses}">
	<div class="">
		<h1 >研招新闻</h1>
		<table class="table table-hover"  >
          <c:forEach items="${pnewses }" var="i">
             <tr >
              <td  class='title'  ><div class='texthidden'><a  href='<%=basePath %>nb/detail/${i.id }'  title="${i.title }">${i.title }</a></div></td>
               
              
              <td style=''>${i.publishDate }</td>
           </tr>
          </c:forEach>
           
		</table>
		<div id="" class="span12" style='margin-left:40%;margin-top:10px;'>
		   
	   <p> <a href='<%=basePath%>nb/yznews_1 '>【首	页】</a>
	   <a href='<%=basePath%>nb/yznews_${pagenow-1 } ' id="first">【上一页】</a>
	   <a  class="pagenow">
	   <strong style='color:red;font-size:16px;'>${pagenow}</strong></a>...
	   <a href='<%=basePath%>nb/yznews_${pagecount }'>${pagecount }</a>
	   <a href='<%=basePath%>nb/yznews_${pagenow+1 } ' id="next">【下一页】</a>
	   <a href='<%=basePath%>nb/yznews_${pagecount } '>【末	页】</a>
	   </p>
	   <script type="text/javascript">
	   $(function(){
		   var page = ${pagenow};
		   
		   var pagecount = ${pagecount};
		 
		   if(parseFloat(page)+1 >parseFloat(pagecount))
			   {
			       $("#next").hide();
			   }
		   if(parseFloat(page)-1 <1)
			   {
			     $("#first").hide();
			   }else{
				   $("#first").show();
			   };
			  
	   });
	</script>
	</div>
	</div>
	
</c:if>
<c:if test="${empty  pnewses}">
   <div style='height:200px;'>
      <p style='color:#990000;'>暂时没有信息！</p>
   </div>
   </c:if>
</div>
